<template>
	<view class="container">
		<uni-collapse v-if="dataList.length > 0">
			<uni-collapse-item :isCode="false" v-for="(item,index) in dataList" :key="index" :title="(index+1) + '.' + item.usinghelpTitle">
				<view class="text">{{item.usinghelpContent}}</view>
			</uni-collapse-item>
		</uni-collapse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: []
			}
		},
		onLoad() {
			this.getDataList()
		},
		methods: {
			getDataList() {
				this.$http.ajax({
					url: '/UsinghelpTitle/list',
					params: {}
				}).then((res) => {
					if (res.code == 200) {
						this.dataList = res.data
					} else {
						this.$api.msg(res.msg)
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.text {
		padding: 20rpx 40rpx;
		font-size: 24rpx;
		text-align: left;
		color: #999999;
		line-height: 40rpx;
		background-color: #EEEEEE;
	}

	.container {
		padding: 0;
	}
</style>
